import { request } from "@/utils/service"
export function selectPage(data) {
    return request({
        url: '/smalladmin/numberY/select/page',
        method: 'POST',
        data
    })
}

export function insert(data) {
    return request({
        url: '/smalladmin/numberY/insertOrUpdate',
        method: 'POST',
        data
    })
}
export function batchDelete(data) {
    return request({
        url: '/smalladmin/numberY/deleteBatch',
        method: 'POST',
        data
    })
}
export function getYGroup() {
    return request({
        url: '/smalladmin/numberY/getYGroup',
        method: 'POST',
    })
}

export function saveMutiCount(params) {
    return request({
        url: '/smalladmin/numberY/saveMutiCount',
        method: 'GET',
        params
    })
}

export function getMutiCount(params) {
    return request({
        url: '/smalladmin/numberY/getMutiCount',
        method: 'GET',
        params
    })
}

export function saveDefaultArea(params) {
    return request({
        url: '/smalladmin/numberY/saveDefaultArea',
        method: 'GET',
        params
    })
}

export function getDefaultArea(params) {
    return request({
        url: '/smalladmin/numberY/getDefaultArea',
        method: 'GET',
        params
    })
}


export function apply() {
    return request({
        url: '/smalladmin/numberY/apply',
        method: 'POST',
    })
}

export function isApply() {
    return request({
        url: '/smalladmin/numberY/isApply',
        method: 'POST',
    })
}

export function queryAllProvice(params) {
    return request({
        url: '/smalladmin/numberY/queryAllProvice',
        method: 'POST',
        params
    })
}

export function saveBatch(data) {
    return request({
        url: '/smalladmin/numberY/addList',
        method: 'POST',
        data
    })
}

export function uploadFileWithTel(data) {
    return request({
        url: '/smalladmin/numberY/uploadFileWithTel',
        method: 'POST',
        data
    })
}

export function exportTelX(params) {
    return request({
        url: '/smalladmin/numberY/exportTelY',
        method: 'POST',
        params,
        responseType: 'arraybuffer'
    })
}